package com.ada.jodd;

import jodd.http.HttpRequest;
import jodd.http.HttpResponse;

import java.io.File;

public class Http {
    public static void main(String[] args) {


        HttpRequest httpRequest = HttpRequest
                .post("http://www.ckcest.cn/uc/uploadCoverImage")
                .form(
                        "file", new File("d:\\1.jpg")
                );

        HttpResponse httpResponse = httpRequest.send();
        System.out.println(httpResponse.statusCode());
        System.out.printf(httpResponse.body());
    }
}
